function solv = getSolv
%%
% Users are suggestted to convert the existing "caffe solver file" to "matlab script"
%    by using the following matlab script and then "paste" the generated script below.
% 1) use the solverfile
%     solverfile = 'VDSR.solver.prototxt';
%     mycaffe.solv.solverfile2matparam(solverfile);
%
% 2) directly copy the contents of the solverfile to the clipboard.
%     mycaffe.solverfile2matparam;

% solv.clip_gradients = 0.01;
solv.clip_gradients = 1;

% The base learning rate, momentum and the weight decay of the network.;
solv.base_lr = 0.1; % the origin is 0.01;
solv.momentum = 0.9;
solv.weight_decay = 0.0001;  % 0.1

% The learning rate policy;
%  solv.lr_policy = 'fixed';

solv.lr_policy = 'step' ;  % if use this, we should count the stepsize according batch_size;
solv.gamma = 0.1;
solv.stepsize = 11698;

% Display every 100 iterations;
solv.display = 500;
% The maximum number of iterations;
% solv.max_iter = 46792; % 467360;
solv.max_iter = 500;
% snapshot intermediate results;
solv.snapshot = 500; % 5000;

% The train/test net protocol buffer definition;
solv.test_iter = 556; % test_iter * Test.batch_size = TestSampleNum
% Carry out testing every 500 training iterations.;
solv.test_interval = 2000;

